var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); $(document).ready(function(){ (function($) { "use strict"; jQuery.validator.addMethod('answercheck', function (value, element) { return this.optional(element) || /^\bcat\b$/.test(value); }, "type the correct answer -_-"); $('#success,#error').hide(); // validate contactForm form $(function() { $('#contactForm').validate({ rules: { name: { required: true, minlength: 2 }, phone: { required: true, minlength: 2 }, email: { required: true, email: true }, subject: { required: false, minlength: 10 }, message: { required: true, minlength: 20 } }, messages: { name: { required: "come on, you have a name don't you?", minlength: "your name must consist of at least 2 characters" }, phone: { required: "come on, you have a phone don't you?", minlength: "your phone number must consist of at least 2 characters" }, email: { required: "no email, no message" }, subject: { required: "please indicate a subject" }, message: { required: "um...yea, you have to write something to send this form.", minlength: "thats all? really?" } }, submitHandler: function(form) { $(form).ajaxSubmit({ type:"POST", data: $(form).serialize(), url:"contact_process.php", success: function() { $('#contactForm :input').attr('disabled', 'disabled'); $('#contactForm').fadeTo( "slow", 0.90, function() { $(this).find(':input').attr('disabled', 'disabled'); $(this).find('label').css('cursor','default'); $('#success').fadeIn(); }); }, error: function() { $('#contactForm').fadeTo( "slow", 0.15, function() { $('#error').fadeIn(); }); } }) } }) $('#serviceForm').validate({ rules: { name: { required: true, minlength: 2 }, phone: { required: true, minlength: 2 }, email: { required: true, email: true }, selectService: { required: true, minlength: 1 } }, messages: { name: { required: "come on, you have a name don't you?", minlength: "your name must consist of at least 2 characters" }, phone: { required: "come on, you have a phone don't you?", minlength: "your phone number must consist of at least 2 characters" }, email: { required: "no email, no message" }, selectService: { required: "Select one service" } }, submitHandler: function(form) { $(form).ajaxSubmit({ type:"POST", data: $(form).serialize(), url:"service_request.php", success: function() { $('#serviceForm :input').attr('disabled', 'disabled'); $('#serviceForm').fadeTo( "slow", 0.90, function() { $(this).find(':input').attr('disabled', 'disabled'); $(this).find('label').css('cursor','default'); $('#success').fadeIn(); }); }, error: function() { $('#serviceForm').fadeTo( "slow", 0.15, function() { $('#error').fadeIn(); }); } }) } }) }) })(jQuery) }) } /* FILE ARCHIVED ON 18:06:18 Aug 27, 2018 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 13:50:36 Sep 16, 2022. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 186.084 exclusion.robots: 0.082 exclusion.robots.policy: 0.076 RedisCDXSource: 94.551 esindex: 0.008 LoadShardBlock: 76.007 (3) PetaboxLoader3.datanode: 350.891 (4) CDXLines.iter: 13.606 (3) load_resource: 357.133 PetaboxLoader3.resolve: 64.117 */